from django.urls import path, include, re_path
from rest_framework import routers
from . import views

router = routers.DefaultRouter()
router.register(r'orders', views.OrderViewSet, basename='order')

urlpatterns = [
    path('', include(router.urls)),
    re_path(r'^orderscounts/$', views.OrdersCountView.as_view()),
    # path(r'^recentorders/<int:days>/', views.RecentOrdersView.as_view()),
    path('recentorders/<int:days>/', views.RecentOrdersView.as_view(), name='recent_orders'),
]
